const shopDoorDao = require("../dao/shopDoorDao");

module.exports.find = async function (searchObj, page) {
    return await shopDoorDao.find(searchObj, page)
}

//根据所有id查询
module.exports.findById = async function (id) {
    try {
        return await shopDoorDao.findById(id)
    } catch (e) {
        return {}
    }
}
//增加
module.exports.insert = async function (shopDoors) {
    return await shopDoorDao.insert(shopDoors)

}
//根据
module.exports.delete = async function (id) {
    return await shopDoorDao.delete(id)
}
// 修改
module.exports.update = async function (id, shopDoors) {
    return await shopDoorDao.update(id, shopDoors)
}